#pragma once

#include <stdio.h>
#include "driver/gpio.h"
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
// #include "freertos/queue.h"

// #include "esp_intr_alloc.h"


#define     KEY_GPIO    0
#define     ESP_INTR_FLAG_DEFAULT 0     //中断定义标志


/*定义队列返回变量*/
// xQueueHandle gpio_evt_queue = NULL;

class GPIO_Button{
    public:
        // GPIO_Switch(uint8_t Switch_IO):IO_Num(Switch_IO){}
        GPIO_Button(uint8_t);
        void InitLED();
        bool Get_Level();
        bool Press_Switch();


    private:
        uint8_t _IO_Num;
};